import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
  plugins: [
    vue(),

  ],


  resolve: {
    alias: [
      {
        find: "@", 
        replacement: "/src",
      }
    ]
  },
  server:{
    proxy:{
        '/api':{
            target:'http://localhost:8080',
            changeOrigin:true,
            rewrite:(path)=>{
                return path.replace(/\/api/,'')
            }
        }
    }
  },
})
